# -*- coding: utf-8 -*-
"""
Created on Tue Oct 17 21:05:01 2023

@author: 楠川之木
"""

# 编写函数，接收任意多个整数并输出其中的最大值和所有整数之和。
def sum_nums(*nums):
    s = 0
    for i in nums:
        s = s + i
    return s
if __name__ == '__main__':
    T1 = (1,3,5,9,7)
    print(('输入数据为{0}，最大值是{1}，所有整数之和是{2}。'.format(T1, max(T1), sum_nums(*T1))))
    T2 = range(1,101)
    print(('输入数据为{0}，最大值是{1}，所有整数之和是{2}。'.format(list(T2), max(T2), sum_nums(*T2))))